#include "FPrincipale.h"




FPrincipale::FPrincipale()
{
  centre = new WPrincipal();
  setWindowTitle("Projet L3 compression");
  setCentralWidget(centre);

  
  QMenu* menuAbout = menuBar()->addMenu("About");
  QAction* us = menuAbout->addAction("Plus sur le projet...");
  QAction* qt = menuAbout->addAction("About Qt");

  
  //Les signaux, sommaires....

  connect(us,SIGNAL(triggered()),this,SLOT(aboutUs()));
  connect(qt,SIGNAL(triggered()),qApp,SLOT(aboutQt()));
}


void FPrincipale::aboutUs()
{
  QMessageBox::information(this,"About us...","Pour de plus grandes informations, consultez le site de la creation du projet : http://code.google.com/p/l3-compression");
}
